Skip to content

Add a mega menu with per-item featured content to the primary navigation - #223

Draft
mlaetitia wants to merge 19 commits into
mainfrom
add/t51eng-2081-megamenu
Draft

Add a mega menu with per-item featured content to the primary navigation#223
mlaetitia wants to merge 19 commits into
mainfrom
add/t51eng-2081-megamenu

Conversation

@mlaetitia

@mlaetitia mlaetitia commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Related to T51ENG-2081

Proposed changes

  • Add a mega menu to the primary navigation: full-bleed dropdown panels for top-level items carrying the megamenu CSS class, with a section header, two columns of links in the order they are set in WP Admin, and an optional featured card with a 16:9 image, custom text and link.
  • Items with a dropdown get a chevron, and switching between panels is instant.
  • Rebuild the mobile menu: full-screen panel, pinned header so it stays closable after scrolling, and a Get Involved button set from the primary menu's Mobile CTA field. The matching menu item is hidden on mobile so the link is not duplicated.
  • Remove the AI secondary navigation, its styles and its menu location.

Why are these changes being made?

The new navigation structure needs a mega menu, with a featured area per dropdown that can be edited in Appearance > Menus rather than in code. The mobile menu was rebuilt to match it.

The panels are opt-in per item: nothing changes for a menu item until it is given the megamenu class, so the desktop navigation renders as it does today until the menu is configured. The mobile restyle and the chevrons apply immediately.

Deploying

Two settings live in Appearance > Menus and are worth setting at deploy time:

  • Mobile CTA link on the primary menu's settings. The Get Involved menu item is hidden on mobile because this button replaces it, so leaving the field empty removes that link from the mobile menu.
  • CSS class megamenu on each top-level item that should open a panel. Enable "CSS Classes" and "Description" under Screen Options first.

Testing instructions

  • At 1200px and above, a top-level item with the megamenu class opens a full-bleed panel on hover and on keyboard focus, and Escape closes it.
  • Below 1200px, the menu opens full screen, closes after scrolling down the page, and shows the Get Involved button.

🤖 Generated with Claude Code

mlaetitia and others added 4 commits July 28, 2026 19:21
…eader and page dim while open, keyboard/touch/ARIA support, and mobile submenu toggle accessibility fixes
…CF fields on menu items

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…h-stripping thumbnail filter cannot break the lazy image's intrinsic height

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…he code already explains, across the megamenu PHP, SCSS, and JS

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mlaetitia

Copy link
Copy Markdown
Collaborator Author

Superseded by #224, #225, and #226, all merged to develop.

@mlaetitia mlaetitia closed this Aug 24, 2026
@mlaetitia mlaetitia reopened this Aug 26, 2026
mlaetitia and others added 15 commits August 26, 2026 19:53
…eader inset, brand-green accents, mobile design specs with a full-screen accordion menu, featured card text/link fields, and a Get Involved CTA

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit f87f4d3)
… them at hardcoded offsets

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 37755ac)
… rename the expanded-section background to the Color naming convention

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit bd98ba2)
…ucent panels) and move the header divider line to the open-state veil so it never flickers

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 58a3170)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit de99af5)
…u's settings, keeping Get Involved as the fallback

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 1070867)
…ack to a hardcoded link

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 21b363f)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 95e255e)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 21fb84a)
…nd rebuild the generated CSS

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X94V2vAqzynRRcqP4Jji2U
…velop: chevron, panel switch, mobile logo and CTA fixes, and the hidden Get Involved item

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011rCHPCdbV5C5dDJjEmMDuy
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011rCHPCdbV5C5dDJjEmMDuy
…ion taps and a filter signature that could fatal

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011rCHPCdbV5C5dDJjEmMDuy
…st and on hover

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011rCHPCdbV5C5dDJjEmMDuy
…ry other menu item

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011rCHPCdbV5C5dDJjEmMDuy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant